-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Series(range_obj_outside_i8_bounds) #41579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Series(range_obj_outside_i8_bounds) #41579
Conversation
jbrockmendel
commented
May 20, 2021
- closes BUG: Series(range(...)) fails when range contains values not supported by int64 #30173
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebase as well as some questions
""" | ||
# GH#30171 perf avoid realizing range as a list in np.array | ||
try: | ||
arr = np.arange(rng.start, rng.stop, rng.step, dtype="int64") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this very simliar to maybe_cast_to_integer_array and generate_regular_range
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe_cast_to_integer_array no, thats the crux of #40110
generate_regular_range conceptually, but they take different args so ill have to take a closer look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok as long as its on the refactor / restructure list
Thanks @jbrockmendel |